import request from '@/utils/request'
import header from './header'

export function CreateOrg(data){
  data=Object.assign(data,header)
  return request({
    url:'/org/organization/create',
    method:'post',
    data
  })
}

export function QueryOrg(data){
  data=Object.assign(data,header)
  return request({
    url:'/org/organization/query',
    method:'post',
    data
  })
}

export function QueryProvince(data){
  data=Object.assign(data,header)
  return request({
    url:'/system/province/query',
    method:'post',
    data
  })
}

export function QueryCity(data){
  data=Object.assign(data,header)
  return request({
    url:'/system/city/query',
    method:'post',
    data
  })
}

export function QueryCounty(data){
  data=Object.assign(data,header)
  return request({
    url:'/system/county/query',
    method:'post',
    data
  })
}

export function ModifyOrg(data){
  data=Object.assign(data,header);
  return request({
    url:'/org/organization/modify',
    method:'put',
    data
  })
}

export function SettingAlipay(data){
  data=Object.assign(data,header);
  return request({
    url:'/org/organization/setting_alipay_config',
    method:'put',
    data
  })
}

export function QueryAlipay(data){
  data=Object.assign(data,header);
  return request({
    url:'/declaration/org_alipay_account_config/query',
    method:'post',
    data
  })
}

export function SettingEbPlatform(data){
  data=Object.assign(data,header);
  return request({
    url:'/org/organization/setting_eb_platform',
    method:'put',
    data
  })
}

export function QueryEbPlatform(data){
  data=Object.assign(data,header);
  return request({
    url:'/declaration/eb_platform/query',
    method:'post',
    data
  })
}

export function QueryGoods(data){
  data=Object.assign(data,header)
  return request({
    url:'/declaration/eb_register_goods/query',
    method:'post',
    data
  })
}

export function ApplyGoods(data){
  data=Object.assign(data,header)
  return request({
    url:'/declaration/hs_code/apply',
    method:'put',
    data
  })
}

export function CancelGoods(data){
  data=Object.assign(data,header)
  return request({
    url:'/declaration/hs_code/cancel',
    method:'put',
    data
  })
}

export function QueryChannel(data){
  data=Object.assign(data,header);
  return request({
    url:'/declaration/report_data_channel/query',
    method:'post',
    data
  })
}